from toee import *
from py00439script_daemon import record_time_stamp, get_v, set_v, npc_set, npc_unset, npc_get, tsc, within_rect_by_corners

def san_dying( attachee, triggerer ):
	record_time_stamp(505)
	set_v(499, get_v(499) + 1 )
	if get_v(499) >= 20:
		record_time_stamp(510)
	return RUN_DEFAULT